/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.tdmq.v20200217.models;

import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class RetryRocketMQDlqMessageRequest extends AbstractModel {

    /**
    * Cluster ID.
    */
    @SerializedName("ClusterId")
    @Expose
    private String ClusterId;

    /**
    * Specifies the namespace name.
    */
    @SerializedName("NamespaceId")
    @Expose
    private String NamespaceId;

    /**
    * Group Name
    */
    @SerializedName("GroupName")
    @Expose
    private String GroupName;

    /**
    * Dead Letter Message ID
    */
    @SerializedName("MessageIds")
    @Expose
    private String [] MessageIds;

    /**
     * Get Cluster ID. 
     * @return ClusterId Cluster ID.
     */
    public String getClusterId() {
        return this.ClusterId;
    }

    /**
     * Set Cluster ID.
     * @param ClusterId Cluster ID.
     */
    public void setClusterId(String ClusterId) {
        this.ClusterId = ClusterId;
    }

    /**
     * Get Specifies the namespace name. 
     * @return NamespaceId Specifies the namespace name.
     */
    public String getNamespaceId() {
        return this.NamespaceId;
    }

    /**
     * Set Specifies the namespace name.
     * @param NamespaceId Specifies the namespace name.
     */
    public void setNamespaceId(String NamespaceId) {
        this.NamespaceId = NamespaceId;
    }

    /**
     * Get Group Name 
     * @return GroupName Group Name
     */
    public String getGroupName() {
        return this.GroupName;
    }

    /**
     * Set Group Name
     * @param GroupName Group Name
     */
    public void setGroupName(String GroupName) {
        this.GroupName = GroupName;
    }

    /**
     * Get Dead Letter Message ID 
     * @return MessageIds Dead Letter Message ID
     */
    public String [] getMessageIds() {
        return this.MessageIds;
    }

    /**
     * Set Dead Letter Message ID
     * @param MessageIds Dead Letter Message ID
     */
    public void setMessageIds(String [] MessageIds) {
        this.MessageIds = MessageIds;
    }

    public RetryRocketMQDlqMessageRequest() {
    }

    /**
     * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
     *       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
     */
    public RetryRocketMQDlqMessageRequest(RetryRocketMQDlqMessageRequest source) {
        if (source.ClusterId != null) {
            this.ClusterId = new String(source.ClusterId);
        }
        if (source.NamespaceId != null) {
            this.NamespaceId = new String(source.NamespaceId);
        }
        if (source.GroupName != null) {
            this.GroupName = new String(source.GroupName);
        }
        if (source.MessageIds != null) {
            this.MessageIds = new String[source.MessageIds.length];
            for (int i = 0; i < source.MessageIds.length; i++) {
                this.MessageIds[i] = new String(source.MessageIds[i]);
            }
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap<String, String> map, String prefix) {
        this.setParamSimple(map, prefix + "ClusterId", this.ClusterId);
        this.setParamSimple(map, prefix + "NamespaceId", this.NamespaceId);
        this.setParamSimple(map, prefix + "GroupName", this.GroupName);
        this.setParamArraySimple(map, prefix + "MessageIds.", this.MessageIds);

    }
}

